package com.diy.sigmund.diycommon.designpatterns.command;

/**
 * @author ylm-sigmund
 * @since 2022/2/9 10:34
 */
public class Light {

    private String name;

    public Light() {
    }

    public Light(String name) {
        this.name = name;
    }

    public void on() {
        System.out.println(name + " Light ON");
    }

    public void off() {
        System.out.println(name + " Light OFF");
    }
}
